package cn.acewill.wsh.daggerandroid.mvp

import android.content.Intent
import android.os.Bundle
import cn.acewill.wsh.daggerandroid.R
import cn.acewill.wsh.daggerandroid.base.DaggerAndroidBaseActivity
import cn.acewill.wsh.daggerandroid.bean.DemoBean
import com.orhanobut.logger.Logger
import kotlinx.android.synthetic.main.activity_main.*
import javax.inject.Inject

class MainActivity : DaggerAndroidBaseActivity() {
    @Inject
    lateinit var bean: DemoBean

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        Logger.d(bean.toString())
        btn_second.setOnClickListener {
            startActivity(Intent(this, SecondActivity::class.java))
        }
    }
}
